import React from 'react'
import {
    TouchableOpacity
} from 'react-native'
import Ionicons from 'react-native-vector-icons/Ionicons'
import theme from '../config/theme'

export default class ViewUtil {
    static getLeftBackButton(callBack: any) {
        return (
            <TouchableOpacity onPress={callBack}>
                <Ionicons name="chevron-back" color={theme.whiteColor} size={30}/>
            </TouchableOpacity>
        )
    }

    static getRightSearch(callBack: () => {}) {
        return (
            <TouchableOpacity onPress={callBack}>
                <Ionicons name="search" color="#333" size={30}/>
            </TouchableOpacity>
        )
    }
}
